import App from '../pages/App';
import Dashboard from '../pages/Dashboard';
import About from '../pages/About';
import Chat from '../pages/Chat';
import Setting from '../pages/Setting';
import Message from '../pages/Message';
import Login from '../pages/Login';
const routes = [
    {
        path:'/',
        component:App
    },
    {
        path:'/dashboard',
        component:Dashboard
    },
    {
        path: '/login',
        component: Login
    },
    {
        path: '/about',
        component: About
    },
    {
        path: '/chat',
        component: Chat,
        routes: [
            {
                path: '/messages/:id',
                component: Message
            }
        ]
    },
    {
        path:'/setting',
        component: Setting,
    }

];

export default routes;